#!/bin/bash
IP=$1 #IP
echo "开始执行"
openssl version

ssh -q ${IP} <<!
mon_pid=\`ps -ef | grep mon_status | grep -v grep | awk '{print \$2}' | xargs \`
job_pid=\`ps -ef | grep ma_jobmain | grep -v grep | awk '{print \$2}' | xargs \`
kill -9 \$mon_pid \$job_pid
exit
!

sleep 1
echo "执行结束"
exit 0
